package com.ruoyi.scenery.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.scenery.mapper.SceneryReserveMapper;
import com.ruoyi.scenery.domain.SceneryReserve;
import com.ruoyi.scenery.service.ISceneryReserveService;

/**
 * 预订信息管理Service业务层处理
 * 
 * @author ruoyi
 * @date 2023-04-13
 */
@Service
public class SceneryReserveServiceImpl implements ISceneryReserveService 
{
    @Autowired
    private SceneryReserveMapper sceneryReserveMapper;

    /**
     * 查询预订信息管理
     * 
     * @param reserveId 预订信息管理主键
     * @return 预订信息管理
     */
    @Override
    public SceneryReserve selectSceneryReserveByReserveId(Long reserveId)
    {
        return sceneryReserveMapper.selectSceneryReserveByReserveId(reserveId);
    }

    /**
     * 查询预订信息管理列表
     * 
     * @param sceneryReserve 预订信息管理
     * @return 预订信息管理
     */
    @Override
    public List<SceneryReserve> selectSceneryReserveList(SceneryReserve sceneryReserve)
    {
        return sceneryReserveMapper.selectSceneryReserveList(sceneryReserve);
    }

    /**
     * 新增预订信息管理
     * 
     * @param sceneryReserve 预订信息管理
     * @return 结果
     */
    @Override
    public int insertSceneryReserve(SceneryReserve sceneryReserve)
    {
        return sceneryReserveMapper.insertSceneryReserve(sceneryReserve);
    }

    /**
     * 修改预订信息管理
     * 
     * @param sceneryReserve 预订信息管理
     * @return 结果
     */
    @Override
    public int updateSceneryReserve(SceneryReserve sceneryReserve)
    {
        return sceneryReserveMapper.updateSceneryReserve(sceneryReserve);
    }

    /**
     * 批量删除预订信息管理
     * 
     * @param reserveIds 需要删除的预订信息管理主键
     * @return 结果
     */
    @Override
    public int deleteSceneryReserveByReserveIds(Long[] reserveIds)
    {
        return sceneryReserveMapper.deleteSceneryReserveByReserveIds(reserveIds);
    }

    /**
     * 删除预订信息管理信息
     * 
     * @param reserveId 预订信息管理主键
     * @return 结果
     */
    @Override
    public int deleteSceneryReserveByReserveId(Long reserveId)
    {
        return sceneryReserveMapper.deleteSceneryReserveByReserveId(reserveId);
    }
}
